Skip to content

Initial structural work#23

Draft
ChriMarMe wants to merge 16 commits intomainfrom
dev
Draft

Initial structural work#23
ChriMarMe wants to merge 16 commits intomainfrom
dev

Conversation

@ChriMarMe
Copy link
Copy Markdown

This PR shall provide the initial new structures and flows.

@github-actions github-actions bot added go Golang related dependencies Pull requests that update a dependency file labels Jan 23, 2026
Copy link
Copy Markdown

@RiSKeD RiSKeD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice stuff, just a few minor points

Comment on lines +52 to +63
if internalError != nil && testError == nil {
t.Result = ResultInternalFailure
t.ErrorText = internalError.Error()
} else if testError != nil && internalError == nil {
t.ErrorText = testError.Error()
t.Result = ResultFail
} else if rc {
t.Result = ResultSuccess
} else {
t.Result = ResultFail
}
return t.Result == ResultSuccess
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't internal error always "overrule" a test error? With this behavior internal errors are only propagated if the test error is nil. Also i personally prefer a switch-case over if-clause chaining.

return false, nil, err
}

pattern := `POH Counter :\s+\d+\s*days,\s+\d+\s*hours`
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this regex could be precompiled instead

@ChriMarMe ChriMarMe force-pushed the dev branch 3 times, most recently from a1d80ed to f6fb63f Compare January 23, 2026 13:59
@AtomicFS
Copy link
Copy Markdown
Collaborator

Out of curiosity, should this close #12 ?

@ChriMarMe ChriMarMe force-pushed the dev branch 10 times, most recently from 6e7be0a to 42fd423 Compare February 2, 2026 12:03
@ChriMarMe ChriMarMe force-pushed the dev branch 5 times, most recently from 9656f15 to 7a8fe80 Compare February 9, 2026 12:33
By adding this capability it will be possible to supply device specific
expected information by a config file.

Signed-off-by: Christopher Meis <christopher.meis@9elements.com>
@ChriMarMe ChriMarMe force-pushed the dev branch 7 times, most recently from 3c07a32 to c22486f Compare February 12, 2026 07:19
@ChriMarMe ChriMarMe force-pushed the dev branch 4 times, most recently from 63f22f1 to 9480f28 Compare February 25, 2026 08:30
@ChriMarMe ChriMarMe force-pushed the dev branch 6 times, most recently from 8591490 to 7f2c155 Compare March 13, 2026 13:50
This commit provides the basic framework, interfaces and some tests as
example for futher extention.

Signed-off-by: Christopher Meis <christopher.meis@9elements.com>
Previously, newHost dialed SSH immediately at device initialization,
causing failures when the host OS hadn't finished booting yet or when
running BMC-only suites that don't need host access.

Now the SSH connection is established on first use via ExecuteCommandLine.

Signed-off-by: llogen <christoph.lange@blindspot.software>
llogen and others added 4 commits March 16, 2026 15:57
Show both expected and actual GUID in the error message to make
mismatches immediately obvious.

Signed-off-by: llogen <christoph.lange@blindspot.software>
Signed-off-by: Christopher Meis <christopher.meis@9elements.com>
Bumps [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action) from 6 to 7.
- [Release notes](https://github.com/goreleaser/goreleaser-action/releases)
- [Commits](goreleaser/goreleaser-action@v6...v7)

---
updated-dependencies:
- dependency-name: goreleaser/goreleaser-action
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Christopher Meis <christopher.meis@9elements.com>
This test allows to test bmc firmware downgrade and upgrade via redfish.

Signed-off-by: Christopher Meis <christopher.meis@9elements.com>
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Mar 20, 2026
ChriMarMe and others added 8 commits March 20, 2026 15:04
Signed-off-by: Christopher Meis <christopher.meis@9elements.com>
Replace os.ExpandEnv with a helper that also resolves a leading ~/
to the user's home directory, fixing "no such file or directory"
errors when paths like ~/Downloads/image.mtd are passed via env vars.

Signed-off-by: llogen <christoph.lange@blindspot.software>
The existing test had multiple issues: ~ not expanded in image paths,
no waiting for BMC to go down before declaring it up, no task polling
before triggering Manager.Reset, stale Redfish session after reboot,
and immediate exit on downgrade failure leaving the BMC on old
firmware. Replace the naive fire-and-forget logic with flashAndWait,
which handles both auto-reboot (static.mtd.tar) and manual-reset
(.static.mtd) image formats, reconnects the Redfish client after each
reboot, and always restores the CI image regardless of test outcome.

Signed-off-by: llogen <christoph.lange@blindspot.software>
The flag was redundant since ssh_key in the host config already
provides the key path after env expansion at load time.

Signed-off-by: llogen <christoph.lange@blindspot.software>
Signed-off-by: Christopher Meis <christopher.meis@9elements.com>
Signed-off-by: Christopher Meis <christopher.meis@9elements.com>
Signed-off-by: llogen <christoph.lange@blindspot.software>
Signed-off-by: Christopher Meis <christopher.meis@9elements.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation github_actions go Golang related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants